﻿using Basic.FormModel.DB;
using Basic.FormRemoteModel.QueryGroup.Model;

namespace Basic.FormCollect
{
    public interface IQueryGroupCollect
    {
        DBPhysicalQueryGroup Get ( long id );
        long Add ( QueryGroupAdd data );
        void Clear ( long formId );
        bool Set ( DBPhysicalQueryGroup group, QueryGroupSet set );
        Result[] GetsByTableId<Result> ( long tableId ) where Result : class, new();
        Result[] GetsByFormId<Result> ( long formId ) where Result : class, new();
        void Delete ( DBPhysicalQueryGroup source );
        void ClearByTableId ( long tableId );
    }
}